package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 库存对象 wms_inventory
 * 
 * @author ruoyi
 * @date 2022-03-21
 */
public class WmsInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String inventoryUuid;

    /** 仓库id */
    @Excel(name = "仓库id")
    private String fkStockUuid;

    /** 仓位id */
    @Excel(name = "仓位id")
    private String fkStockPosUuid;

    /** 物品表ID */
    @Excel(name = "物品表ID")
    private String fkItemUuid;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private BigDecimal inventoryQty;

    /** 计量单位（字典表） */
    @Excel(name = "计量单位", readConverterExp = "字=典表")
    private String wmsDictMeasuringUnit;

    /** 最近单据编号 */
    @Excel(name = "最近单据编号")
    private String recentlyDocNum;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 备注 */
    @Excel(name = "备注")
    private String inventoryNote;



    @Excel(name = "仓库")
    private String stockName;

    @Excel(name = "仓位")
    private String stockPosName;

    @Excel(name = "物料")
    private String itemName;

    @Excel(name = "物料编码")
    private String itemNum;

    @Excel(name = "计量单位")
    private String measuringUnit;

    @Excel(name = "规格型号")
    private String itemSpecification;
    private BigDecimal actualSheetQty;
    private BigDecimal differentQty;

    public BigDecimal getDifferentQty() {
        return differentQty;
    }

    public void setDifferentQty(BigDecimal differentQty) {
        this.differentQty = differentQty;
    }

    public BigDecimal getActualSheetQty() {
        return actualSheetQty;
    }

    public void setActualSheetQty(BigDecimal actualSheetQty) {
        this.actualSheetQty = actualSheetQty;
    }

    public String getMeasuringUnit() {
        return measuringUnit;
    }

    public void setMeasuringUnit(String measuringUnit) {
        this.measuringUnit = measuringUnit;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public String getStockPosName() {
        return stockPosName;
    }

    public void setStockPosName(String stockPosName) {
        this.stockPosName = stockPosName;
    }

    @Override
    public String getItemName() {
        return itemName;
    }

    @Override
    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Override
    public String getItemNum() {
        return itemNum;
    }

    @Override
    public void setItemNum(String itemNum) {
        this.itemNum = itemNum;
    }

    public String getItemSpecification() {
        return itemSpecification;
    }

    public void setItemSpecification(String itemSpecification) {
        this.itemSpecification = itemSpecification;
    }

    public void setInventoryUuid(String inventoryUuid)
    {
        this.inventoryUuid = inventoryUuid;
    }

    public String getInventoryUuid() 
    {
        return inventoryUuid;
    }
    public void setFkStockUuid(String fkStockUuid) 
    {
        this.fkStockUuid = fkStockUuid;
    }

    public String getFkStockUuid() 
    {
        return fkStockUuid;
    }
    public void setFkStockPosUuid(String fkStockPosUuid) 
    {
        this.fkStockPosUuid = fkStockPosUuid;
    }

    public String getFkStockPosUuid() 
    {
        return fkStockPosUuid;
    }
    public void setFkItemUuid(String fkItemUuid) 
    {
        this.fkItemUuid = fkItemUuid;
    }

    public String getFkItemUuid() 
    {
        return fkItemUuid;
    }
    public void setInventoryQty(BigDecimal inventoryQty) 
    {
        this.inventoryQty = inventoryQty;
    }

    public BigDecimal getInventoryQty() 
    {
        return inventoryQty;
    }
    public void setWmsDictMeasuringUnit(String wmsDictMeasuringUnit) 
    {
        this.wmsDictMeasuringUnit = wmsDictMeasuringUnit;
    }

    public String getWmsDictMeasuringUnit() 
    {
        return wmsDictMeasuringUnit;
    }
    public void setRecentlyDocNum(String recentlyDocNum) 
    {
        this.recentlyDocNum = recentlyDocNum;
    }

    public String getRecentlyDocNum() 
    {
        return recentlyDocNum;
    }
    public void setUpdateAt(Date updateAt) 
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt() 
    {
        return updateAt;
    }
    public void setInventoryNote(String inventoryNote) 
    {
        this.inventoryNote = inventoryNote;
    }

    public String getInventoryNote() 
    {
        return inventoryNote;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryUuid", getInventoryUuid())
            .append("fkStockUuid", getFkStockUuid())
            .append("fkStockPosUuid", getFkStockPosUuid())
            .append("fkItemUuid", getFkItemUuid())
            .append("inventoryQty", getInventoryQty())
            .append("wmsDictMeasuringUnit", getWmsDictMeasuringUnit())
            .append("recentlyDocNum", getRecentlyDocNum())
            .append("updateAt", getUpdateAt())
            .append("inventoryNote", getInventoryNote())
            .toString();
    }
}
